  <div class="item"><%=h _("Product name")%></div>
  <div class="data">
    <%= text_field_tag :productname, @productname %>
  </div>
  <div class="item"><%=h _("Comment") %></div>
  <div class="data">
    <%= text_field :gift, :comment, :size => 50 %>
  </div>
  <div class="item"><%=h _("Rating") %></div>
  <div class="data">
    <% a = [] %>
    <% 5.times{|t| a << [n_("%{number} star", "%{number} stars", t+1) % {:number => t+1}, t+1] } %>
    <%= select :gift, :rating, a %>
  </div>
  <div class="item"><%=h _("Tagging (Comma separated)") %></div>
  <div class="data">
    <%= text_field :gift, :tag_list, :size => 50 %>
  </div>
  <div class="item"><%=h _("Gender") %></div>
  <div class="data">
    <%= radio_button :gift, :gender, 1, :checked => true %><%=h _("Boy")%>
    <%= radio_button :gift, :gender, 2 %><%=h _("Girl")%>
  </div>
  <div class="item"><%=h _("Age") %></div>
  <div class="data">
    <% bol = true %>
    <% i = 1 %>
    <% r = 3 %>
    <table>
      <% Age.find(:all, :order => 'id').each do |a| %>
        <%= '<tr>' if i == 1 %>
        <td><%= radio_button :gift, :age_id, a.id, :checked => bol %><%=h a.name %></td>
        <%= '</tr>' if i == r %>
        <% if i == r then i=1 else i += 1 end %>
        <% bol = false %>
      <% end %>
      <% (r+1-i).times { %>
      <td></td>
      <% } %>
      <%= '</tr>' if i != 1 %>
    </table>
  </div>
  <div class="item"><%=h _("Event") %></div>
  <div class="data">
      <% bol = true %>
      <% i = 1 %>
      <% r = 3 %>
      <table>
      <% Event.find(:all, :order => 'id').each do |a| %>
        <%= '<tr>' if i == 1 %>
        <td><%= radio_button :gift, :event_id, a.id, :checked => bol %><%=h a.name %></td>
        <%= '</tr>' if i == r %>
        <% if i == r then i=1 else i += 1 end %>
        <% bol = false %>
      <% end %>
      <% (r+1-i).times { %>
      <td></td>
      <% } %>
      <%= '</tr>' if i != 1 %>
      </table>
  </div>
  <%= submit_tag _("Add Gift") %>
